#include "slist.h"
#include <stdio.h>

int main()
{
	DATA data[] = {5,10,15,20,25,30};
	DATA n = sizeof data / sizeof data[0];
	NODE *head = NULL;

	register int i = 0;
	for(; i < n; i++)
		slist_insert(&head,0,data[i]);
	slist_print(head);
	
	slist_insert(&head,20,100);
	slist_print(head);

	slist_free(&head);
	slist_print(head);
	return 0;
}
